package main

import "fmt"

func main() {
	//长度为5 容量为10的切片
	s := make([]int, 5, 10)
	//%p可以获取切片内部的数组地址
	fmt.Printf("地址:%p\n", s)
	s = append(s, 5, 6, 7, 8, 9)
	fmt.Printf("地址:%p\n", s)
	s = append(s, 10, 11)
	fmt.Printf("地址:%p\n", s)
}
